package com.example.myapplication.antivity

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.TextView
import com.example.myapplication.R

class LoginActivity : AppCompatActivity() {
    private val logYj: Button by lazy { findViewById<Button>(R.id.log_yj) }
    private val logQt: TextView by lazy { findViewById<TextView>(R.id.log_qt) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_login)
        logQt.setOnClickListener(View.OnClickListener {
            startActivity(Intent(this,Login2Activity::class.java))
            finish()
        })
    }
}
